package com.hanxiaozhang.order.feign;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * 〈一句话功能简述〉<br>
 * 〈上传文件FeignClient〉
 *  注释掉
 *
 * @author hanxinghua
 * @create 2020/7/2
 * @since 1.0.0
 */
// @FeignClient(name = "springcloud-provider-order",configuration = FeignMultipartConfig.class)
public interface OldFileFeignClient {

    /**
     * 上传文件
     *
     * @param file
     * @return
     */
    @RequestMapping(value = "/uploadFile", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    String fileUpload(@RequestPart(value = "file") MultipartFile file);


}
